package com.bed.lovewithpatientbed.common.params;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author xuxiaoding
 * @version 1.0.0
 * @ClassName OrderSearchParams.java
 * @Description 订单查询条件参数
 */
public class OrderSearchParams {

    /**
     * 订单号-模糊查询
     */
    private Integer orderId;

    /**
     * 所属医院
     */
    private Integer hospitalId;

    /**
     * 所属科室
     */
    private Integer deptId;

    /**
     * 订单类型
     */
    private Integer orderTypeId;

    /**
     * 下单时间范围-开始
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderStartFromTime;

    /**
     * 下单时间范围-结束
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderStartToTime;

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getHospitalId() {
        return hospitalId;
    }

    public void setHospitalId(Integer hospitalId) {
        this.hospitalId = hospitalId;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public Integer getOrderTypeId() {
        return orderTypeId;
    }

    public void setOrderTypeId(Integer orderTypeId) {
        this.orderTypeId = orderTypeId;
    }

    public Date getOrderStartFromTime() {
        return orderStartFromTime;
    }

    public void setOrderStartFromTime(Date orderStartFromTime) {
        this.orderStartFromTime = orderStartFromTime;
    }

    public Date getOrderStartToTime() {
        return orderStartToTime;
    }

    public void setOrderStartToTime(Date orderStartToTime) {
        this.orderStartToTime = orderStartToTime;
    }

    @Override
    public String toString() {
        return "OrderSearchParams{" +
                "orderId=" + orderId +
                ", hospitalId=" + hospitalId +
                ", deptId=" + deptId +
                ", orderTypeId=" + orderTypeId +
                ", orderStartFromTime=" + orderStartFromTime +
                ", orderStartToTime=" + orderStartToTime +
                '}';
    }
}
